package com.ruoyi.crm.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.translation.annotation.Translation;
import com.ruoyi.common.translation.constant.TransConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
@TableName("crm_customer_info")
@ExcelIgnoreUnannotated

public class CustomerInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 客户ID（主键） */
    @TableId(value = "customer_id")
    @ExcelProperty(value = "客户ID")
    private Long customerId;

    /** 客户名称 */
    @ExcelProperty(value = "客户名称")
    @TableField("customer_name")
    private String customerName;

    /** 负责人ID */
    @ExcelProperty(value = "负责人ID")
    private Long responsiblePersonId;

    /** 客户类型ID */
    @ExcelProperty(value = "客户类型ID")
    private Long customerTypeId;



//    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL,mapper = "customerType",other = "sys_user_sex")
//    private String customerTypeName;

    /** 客户来源ID */
    @ExcelProperty(value = "客户来源ID")
    private Long sourceId;

    /** 所属行业ID */
    @ExcelProperty(value = "所属行业ID")
    private Long industryId;

    /** 公司规模ID */
    @ExcelProperty(value = "公司规模ID")
    private Long companySizeId;

    /** 联系人ID */
    @ExcelProperty(value = "联系人ID")
    private Long contactId;

    /** 客户级别ID */
    @ExcelProperty(value = "客户级别ID")
    private Long customerTierId;

    /** 客户标签ID */
    @ExcelProperty(value = "客户标签ID")
    private Long customerTagsId;

    /** 网址 */
    @ExcelProperty(value = "网址")
    private String website;


    /** 成交状态(0:未成交，1：已成交)*/
    @ExcelProperty(value = "成交状态")
    private String transactionStatus;

    /** 最后跟进时间 */
    @ExcelProperty(value = "最后跟进时间")
    private Date lastTime;

    /** 下次跟进时间 */
    @ExcelProperty(value = "下次跟进时间")
    private Date nextTime;


    /** 备注 */
    @ExcelProperty(value = "备注")
    private String remark;

}
